import request from '@/utils/request'
export const getDepartment = () => request.get('/company/department')
// 获取部门负责人
export const getSimple = () => request.get('/sys/user/simple')
export const addDepartment = data => request.post('/company/department', data)
// 获取部门详情
export const cDepartment = id => request.get(`/company/department/${id}`)
// 修改
export const editDepartment = data => request.put('/company/department/' + data.id, data)
// 删除
export const delDepartment = id => request.delete(`/company/department/${id}`)
